package org.ymjava.medical.db.AllPackage.biz;

import com.ace.cache.annotation.Cache;
import org.springframework.stereotype.Service;

import org.ymjava.medical.db.AbstractBaseBiz.BaseBiz;
import org.ymjava.medical.db.AllPackage.entity.NurseJob;
import org.ymjava.medical.db.AllPackage.entity.NurseMechanism;
import org.ymjava.medical.db.AllPackage.mapper.NurseJobMapper;
import tk.mybatis.mapper.entity.Example;

import java.util.List;


/**
 * 
 *
 * @author zhy
 * @email ${email}
 * @date 2020-03-27 09:12:02
 */
@Service
public class NurseJobBiz extends BaseBiz<NurseJobMapper,NurseJob> {


    @Cache(key = "nurse_answer_personal_information_jobList")
    public List<NurseJob> list_sort(){
        Example example = new Example(NurseJob.class);
        example.createCriteria().andEqualTo("deleted",0);
        example.orderBy("sort");

        return selectByExample(example);

    }
}